package com.provider.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Author：Administrator
 * @Date：2022/7/9/0009 9:24
 * @Versiion：1.0
 */
@RestController
@Slf4j
public class PaymentController {

    @Value("${server.port}")
    private String serverPort;


    @GetMapping("/payment/consul")
    public String getServerPort() {
        return "this server port is " + serverPort + " \t " + UUID.randomUUID();
    }
}
